package com.sudo.common.task;

import lombok.Data;

@Data
public class TaskParam {
    private String key;

    private String type;

    private boolean require;

    private String example;

    private String desc;

    public TaskParam(){

    }

    public TaskParam(String string){
        //count1(String,true,2,获取数据次数)
        string = string.replace("(",",").replace(")",",");
        String[] strArr = string.split(",");
        this.key = strArr[0];
        this.type = strArr[1];
        this.require = Boolean.parseBoolean(strArr[2]);
        this.example = strArr[3];
        this.desc = strArr[4];
    }

}
